<%--
  Created by IntelliJ IDEA.
  User: xin
  Date: 2024/9/19
  Time: 下午3:15
  To change this template use File | Settings | File Templates.
--%>
<%@page import="com.sun.org.apache.xml.internal.serializer.utils.StringToIntTable"%>
<%@ page  language="java"  import="java.util.*" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<html lang="en">
<head>
    <meta http-equiv="content-type" content="text/html" charset="UTF-8">
    <title>application内置对象</title>
    <style>
        body{
            background: RGBA(38,38,38,1);
        }
        div{
            width: 800px;//
            border:1px solid RGBA(100,90,87,1);
            color: white;
        }
        span{
            font-size:20px;
            font-weight: bold;
        }
        .span1{
            color: green;
        }
        .span2{
            color: orange;
        }
        .span3 {
            color: green;
        }
        .span4{
            color: red;
        }
    </style>
</head>
<body>
<div>
    <%
        Object O = application.getAttribute("message");
        if(O == null){
            out.print("暂时还没有留言呢");
        }else {
            Vector<String>V =(Vector<String>) O;
            for(int i = V.size()-1;i>=0;i--){
                // 注意必须用/.String[]st1 = v.get(i).split("/.")
                //  for(int j=0;j<st1.length;j++){
                //out.print(st1[j]+"<br>");
                // }
                // out.print("<br>");
                StringTokenizer st = new StringTokenizer(V.get(i),".");
                while (st.hasMoreElements()){
                    out.print(st.nextToken()+"<br>");
                }
            }
        }
    %>
</div>
</body>
</html>